#ifndef RPGANIMATEDSPRITE_H
#define RPGANIMATEDSPRITE_H

#include "rpgsprite.h"

class RpgAnimatedSprite : public RpgSprite
{
public:
    RpgAnimatedSprite(u8 screen, u8 id, void *data, RpgSpritePal *palette);
    void stop();
    void animate(u16 startFrame, u16 endFrame, s16 speed);

    u16 currentFrame() { return m_frame; }
    void setCurrentFrame(u16 frame);

private:
    bool m_animating;
    u16 m_frame;
};

#endif // RPGANIMATEDSPRITE_H
